﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using WTM.Model;


namespace WTM.ViewModel.BaseData.WorksVMs
{
    public partial class WorksTemplateVM : BaseTemplateVM
    {
        [Display(Name = "工作名称")]
        public ExcelPropety work_Excel = ExcelPropety.CreateProperty<Works>(x => x.work);
        [Display(Name = "单位区域")]
        public ExcelPropety Dwqy_Excel = ExcelPropety.CreateProperty<Works>(x => x.Dwqy);
        [Display(Name = "单位名称")]
        public ExcelPropety Dwmc_Excel = ExcelPropety.CreateProperty<Works>(x => x.Dwmc);
        [Display(Name = "单位编码/统一机构代码")]
        public ExcelPropety Dwbm_Excel = ExcelPropety.CreateProperty<Works>(x => x.Dwbm);
        [Display(Name = "单位类型")]
        public ExcelPropety Dwlx_Excel = ExcelPropety.CreateProperty<Works>(x => x.Dwlx);
        [Display(Name = "单位地址")]
        public ExcelPropety Dwdz_Excel = ExcelPropety.CreateProperty<Works>(x => x.Dwdz);
        [Display(Name = "电话")]
        public ExcelPropety Lxdh_Excel = ExcelPropety.CreateProperty<Works>(x => x.Lxdh);
        [Display(Name = "联系人")]
        public ExcelPropety Lxr_Excel = ExcelPropety.CreateProperty<Works>(x => x.Lxr);
        [Display(Name = "工作内容")]
        public ExcelPropety WorkNr_Excel = ExcelPropety.CreateProperty<Works>(x => x.WorkNr);
        [Display(Name = "年龄要求(最低)")]
        public ExcelPropety NlYq_1_Excel = ExcelPropety.CreateProperty<Works>(x => x.NlYq_1);
        [Display(Name = "年龄要求(最大)")]
        public ExcelPropety NlYq_2_Excel = ExcelPropety.CreateProperty<Works>(x => x.NlYq_2);
        [Display(Name = "性别要求")]
        public ExcelPropety XbYq_Excel = ExcelPropety.CreateProperty<Works>(x => x.XbYq);
        [Display(Name = "要求(必须)")]
        public ExcelPropety WorkYq_1_Excel = ExcelPropety.CreateProperty<Works>(x => x.WorkYq_1);
        [Display(Name = "要求(优先)")]
        public ExcelPropety WorkYq_2_Excel = ExcelPropety.CreateProperty<Works>(x => x.WorkYq_2);
        [Display(Name = "薪资待遇")]
        public ExcelPropety Xzdy_Excel = ExcelPropety.CreateProperty<Works>(x => x.Xzdy);
        [Display(Name = "备注")]
        public ExcelPropety Remark_Excel = ExcelPropety.CreateProperty<Works>(x => x.Remark);

	    protected override void InitVM()
        {
        }

    }

    public class WorksImportVM : BaseImportVM<WorksTemplateVM, Works>
    {

    }

}
